package JUNHO.thead;

public class TesteSync implements Runnable
{

	/**
	 * @param args
	 */
	public static void main(String[] args)
	{
		TesteSync s = new TesteSync();
		Thread t = new Thread(s);
		Thread tt = new Thread(s);
		t.start();
		tt.start();
	}

	@Override
	public void run()
	{
		mostraLetra();
	}

	private void mostraLetra()
	{
//		synchronized(this)
//		{
			for(int i = 65 ; i < 90 ; i++)
			{
				char c = (char) i;
				System.out.print(" "+c);
				if((char)i == 'Y')
				{
					System.out.println();
				}
			}
//		}
	}

}
